#include <iostream>
#include <sstream>
#include <string>
using std::cout;
using std::endl;
using std::string;
using std::istringstream;

void test0(){
    string line = "123 456";
    int num1 = 0, num2 = 0;
    istringstream iss(line);
    iss >> num1 >> num2;
    cout << "num1:" << num1 << endl;
    cout << "num2:" << num2 << endl;
}

int main(void){
    test0();
    return 0;
}
